def ok_response(data):
    return {"code": 200, "message": "成功", "data": data}

def show_response(totalPage:int,data):
    return {"code": 200, "message": "成功","totalPage":totalPage, "data": data}

def error_response(code: int, message: str,data=None):
    """
    200：成功；
    401：token验证失败；
    500：服务器异常；
    5000：输入参数不完整；
    """
    return {"code": code, "message": message,"data":None}
